package command;

public class TranslateTwoStepCommand implements ICommand {
	
	private ICommand first;
	private ICommand second;
	
	public TranslateTwoStepCommand(ICommand first, ICommand second) {
		this.first = first;
		this.second = second;
	}
	
	@Override
	public void execute() {
		first.execute();
		second.execute();
	}
	
	@Override
	public void undo() {
		first.undo();
		second.undo();
	}
	
}